<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>

	    <title><?php echo $this->fetch('title'); ?></title>
	    <link rel="shortcut icon" href="<?php echo Router::url("/favicon.ico",false); ?>" type="image/x-icon" />
	    <?php
	    
	        echo $this->Html->css(array('login'));
    
		    //Scripts globales
		    echo $this->Html->script(array(
		    'jquery/jquery-1.7.2.min',
		    'util',
		    'login',
		    'json2',
		    'jquery/addons/jquery.validate.1.5.5',
		    'jquery/addons/jquery.corner.2.01'
		    ));

    		echo $this->fetch('css');
    		echo $this->fetch('script');
    		
	    ?>
	    <?php $rutaContextoAplicacion = $this->Html->url("/",false);
	    	if(strlen($rutaContextoAplicacion) == 1){
	    		$rutaContextoAplicacion = "";
	    	}else{
	    		$rutaContextoAplicacion = substr($rutaContextoAplicacion,0,strlen($rutaContextoAplicacion)-1);
	    	}
	    ?>
	    <script type="text/javascript">
	    	var contextPath = "<?php echo $rutaContextoAplicacion; ?>";
	    </script>
    </head>
    <body>
	    <div id="all">
		    <div id="header">
			    <h1>Sistema de &Oacute;rdenes de Trabajo</h1>
		    </div>
		    <div id="contenido">
			     <?php echo $this->fetch('content'); ?>
		    </div>
		    <div id="footer">Derechos Reservados</div>
	    </div>
    </body>
</html>